package org.jtao.gbsubject.repository;

import org.jtao.gbsubject.domain.College;
import org.jtao.gbsubject.domain.Subject;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import org.springframework.data.jpa.repository.*;



/**
 * Spring Data JPA repository for the College entity.
 */
@SuppressWarnings("unused")
@Repository
public interface CollegeRepository extends JpaRepository<College, Long> {

    /*@Query("select college from College college left join fetch college.subjects where college.id =:id")
    College findOneWithEagerRelationships(@Param("id") Long id);*/

    College findOneByName(String name);
}
